package com.start.shop.api.param.coupon;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;

import com.start.shop.modules.repository.entity.User;

import lombok.Data;

@Data
public class GetUseableCouponParam {
	@NotBlank(message = "商品编号非法")
	private User user;
	@DecimalMin(value = "1", message = "订单金额有误") //大于1的数字
	private BigDecimal orderAmt;
	@DecimalMin(value = "1", message = "商品编号有误") //大于1的数字
	private int goodsId;
	@DecimalMin(value = "1", message = "商品类型有误") //大于1的数字
	private int goodsType;
}
